<?php

include '../../../configuration.php';

$smarty->template_dir = LOCAL_PATH.'administrator/main/templates/';
$smarty->compile_dir = LOCAL_PATH.'administrator/main/templates_c/';
$smarty->config_dir = LOCAL_PATH.'administrator/main/configs';

$smarty->compile_check = true;
//$smarty->debugging = true;

$faculties = array();
$ids = array();

$result = mysql_query("SELECT * FROM `faculties`");
while($rows = mysql_fetch_array($result, MYSQL_ASSOC)){
	$faculties[] = $rows["faculty_name"];
	$ids[] = $rows["faculty_id"];
}

$smarty->assign('faculties',$faculties);
$smarty->assign('ids',$ids);

include '../../check.php';
if ($checking == 1)
	$smarty->display('modify_or_delete_faculty.tpl');
else echo "You are not autorised"; exit;

?>